package javaer.starter.model;

import com.google.common.collect.Lists;
import lombok.AccessLevel;
import lombok.experimental.FieldDefaults;

import java.util.List;

/**
 * 脚手架类型
 *
 * @author yangzhen
 * @date 2023/6/5 10:52
 * @since 1.0.0
 */
@FieldDefaults(level = AccessLevel.PRIVATE)
public class StarterTypeModel extends BaseModel {

    public static final String SQL_TEMPLATE = "insert into starter_type (type_id, type_name, description, gmt_create, gmt_modified) values ";

    public static final String SQL_NAME = "starter_type.sql";

    /**
     * 脚手架类型唯一标识
     */
    String typeId;
    /**
     * 应用名称
     */
    String typeName;
    /**
     * 应用描述
     */
    String description;

    public String getTypeId() {
        return typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public List<Object> getSqlValues() {
        return Lists.newArrayList(
                this.typeId,
                this.typeName,
                this.description,
                this.getGmtCreate(),
                this.getGmtModified()
        );
    }
}